<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
        演示 - Web Uploader
    </title>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <link rel="shortcut icon" href="/webuploader/images/favicon.ico">
    <link rel="stylesheet" type="text/css" href="/webuploader/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/webuploader/css/bootstrap-theme.min.css">
    <link rel="stylesheet" type="text/css" href="/webuploader/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/webuploader/css/syntax.css">
    <link rel="stylesheet" type="text/css" href="/webuploader/css/style.css">

    <link rel="stylesheet" type="text/css" href="/webuploader/css/webuploader.css">

    <link rel="stylesheet" type="text/css" href="/webuploader/css/demo.css">

</head>

<body>
<div id="wrapper">
    <div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand logo" href="/webuploader/">
                    <span class="fa fa-cloud-upload"></span>WebUploader</a>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav">      <li><a href="/webuploader/getting-started.html">Getting started</a></li>      <li><a href="/webuploader/document.html">Document</a></li>           <li><a href="/webuploader/doc/index.html">API</a></li>    <li class="active"><a href="/webuploader/demo.html" class="active">Demo</a></li>          <li><a href="/webuploader/download.html">Download</a></li>
                    <li><a target="_blank" href="https://github.com/fex-team/webuploader/issues?labels=faq&amp;page=1&amp;state=open">FAQ</a></li>
                </ul>

                <ul class="nav navbar-nav navbar-right">
                    <li><a target="_blank" href="https://github.com/fex-team/webuploader">Github</a></li>
                </ul>
            </div>
            <!-- /.nav-collapse -->
        </div>
        <!-- /.container -->
    </div>
    <!-- /.navbar --> <div class="page-body">

    <div id="post-container" class="container">






        <div class="page-container">
            <h1 id="demo">Demo</h1>

            <p>您可以尝试文件拖拽，使用QQ截屏工具，然后激活窗口后粘贴，或者点击添加图片按钮，来体验此demo.</p>

            <div id="uploader" class="wu-example">
                <div class="queueList filled">
                    <div id="dndArea" class="placeholder element-invisible">
                        <div class="webuploader-container" id="filePicker"><div class="webuploader-pick">点击选择图片</div><div style="position: absolute; top: 0px; left: 73.85px; width: 168px; height: 44px; overflow: hidden; bottom: auto; right: auto;" id="rt_rt_1a62e3r6n1cthmj91upp1hpkf0v1"><input accept="image/*" multiple="multiple" class="webuploader-element-invisible" name="file" type="file"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"></label></div></div>
                        <p>或将照片拖到这里，单次最多可选300张</p>
                    </div>
                    <ul class="filelist"><li id="WU_FILE_0"><p class="title">rtx_user_default_photo.jpg</p><p class="imgWrap"><img src=""></p><p class="progress"><span></span></p><div class="file-panel"><span class="cancel">删除</span><span class="rotateRight">向右旋转</span><span class="rotateLeft">向左旋转</span></div></li></ul></div>
                <div class="statusBar" style="">
                    <div style="display: none;" class="progress">
                        <span class="text">0%</span>
                        <span style="width: 0%;" class="percentage"></span>
                    </div><div class="info">选中1张图片，共36.80K。</div>
                    <div class="btns">
                        <div class="webuploader-container" id="filePicker2"><div class="webuploader-pick">继续添加</div><div style="position: absolute; top: 0px; left: 10px; width: 94px; height: 42px; overflow: hidden; bottom: auto; right: auto;" id="rt_rt_1a62e3r6t1afh1n5p15bqp4v165o6"><input accept="image/*" multiple="multiple" class="webuploader-element-invisible" name="file" type="file"><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"></label></div></div><div class="uploadBtn state-ready">开始上传</div>
                    </div>
                </div>
            </div>

        </div>



        <div id="ghComments" class="comments" data-issue-id="81">
            <h2>评论</h2>
            <div id="header">想要留下评论，请在<a href="https://github.com/fex-team/webuploader/issues/81">此Github issue</a> 页面完成操作，谢谢！</div>

            <div class="alert alert-warning">
                <p>如果是讨论技术问题或者报告bug，请最好还是新建一个issue展开讨论，以免你提出的问题石沉大海。</p>
                <p>点此进入<a href="https://github.com/fex-team/webuploader/issues">issues列表页</a>。</p></div>
            <div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1574903?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hooray">hooray</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-31739288">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>很棒！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2449891?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/xiaojiangang">xiaojiangang</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-31803630">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>给力啊~~~！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1488147?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/jackwu365">jackwu365</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-31808686">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>上传图片，点图片拖拽，有bug</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-31808859">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/jackwu365" class="user-mention">@jackwu365</a> 请提供更详细的信息, 我这chrome, safari都是能正常拖拽的。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1488147?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/jackwu365">jackwu365</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-31808938">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://camo.githubusercontent.com/8eae1ecb83d39676b73ad4242dd4150b6b0822f2/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313438383134372f313836363332332f36666163376536362d373832652d313165332d393364662d6665613338376465663339392e706e67" target="_blank"><img src="https://camo.githubusercontent.com/8eae1ecb83d39676b73ad4242dd4150b6b0822f2/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313438383134372f313836363332332f36666163376536362d373832652d313165332d393364662d6665613338376465663339392e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/1488147/1866323/6fac7e66-782e-11e3-93df-fea387def399.png" style="max-width:100%;"></a></p>

            <p>chrome 版本 30.0.1599.101 m<br>
                win 8.1</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-31808962">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/jackwu365" class="user-mention">@jackwu365</a> thx</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2235199?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/addls">addls</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-31813222">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>Nice!</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2127199?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/okoala">okoala</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32144602">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>上传的进度可以精确吗，我看了下，一进去直接就100%了。uploadProgress的事件回调是多少毫秒执行一次来着。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32145257">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>这个进度是客服端的发送的进度，小文件，客户端都是一下子就发出去了。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6436116?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/107295472">107295472</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32730406">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://camo.githubusercontent.com/b4fcf28d87941805edbfd5539313572efab8d09c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363433363131362f313935313336312f62366238323361302d383137612d313165332d396565392d3630313832313261343030362e6a7067" target="_blank"><img src="https://camo.githubusercontent.com/b4fcf28d87941805edbfd5539313572efab8d09c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363433363131362f313935313336312f62366238323361302d383137612d313165332d396565392d3630313832313261343030362e6a7067" alt="qq20140120102457" data-canonical-src="https://f.cloud.github.com/assets/6436116/1951361/b6b823a0-817a-11e3-9ee9-6018212a4006.jpg" style="max-width:100%;"></a>弄到本地图片就zhe'ya这样了，请问怎么办?</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32731194">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/107295472" class="user-mention">@107295472</a> 什么个意思？ 样式问题？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6436116?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/107295472">107295472</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32731246">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>嗯样式问题，本地就这样子了，我把html5 重置的演示删掉了，其他都没删啊</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32731388">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>重置的样式把，你尝试看看是不是某个p的margin引起的。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6436116?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/107295472">107295472</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32731511">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>嗯， 是重置的问题，我想把自己改小点，重置后，字体变大了</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2235199?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/addls">addls</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32908629">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>JK, ss!<br>
            <a href="https://camo.githubusercontent.com/8ba1a57a0d87c85756a90844c89bec54a910a444/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323233353139392f313936363032312f34303336376565612d383263322d313165332d383363352d3638663539636539326162382e706e67" target="_blank"><img src="https://camo.githubusercontent.com/8ba1a57a0d87c85756a90844c89bec54a910a444/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323233353139392f313936363032312f34303336376565612d383263322d313165332d383363352d3638663539636539326162382e706e67" alt="qq20140122-1" data-canonical-src="https://f.cloud.github.com/assets/2235199/1966021/40367eea-82c2-11e3-83c5-68f59ce92ab8.png" style="max-width:100%;"></a></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32908825">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>Where's the screenshot?</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-32909519">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/addls" class="user-mention">@addls</a> 粘贴的是什么东西？屏幕截图还是网页中的图片数据？还是什么？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1574903?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hooray">hooray</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-35979730">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>我在「uploadSuccess」时执行了「uploader.removeFile(file);」，目的是让用户可以再次上传已上传过的图片，但发现有个问题，就是有的文件可以重复上传，但有的选择之后没有加载到上传列表里，目前还没找到具体原因，但发现能再次选择并上传的都是尺寸比较小的图。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1574903?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hooray">hooray</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38012222">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>开启分片上传后，后端应该怎么处理，希望作者能介绍下，我上传一个超大的压缩包，上传后发现全是很小的压缩包。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6436116?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/107295472">107295472</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38012555">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>作者是前端啊，不是后端啊，后端他怎么会呢</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38012607">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>目前先参考server/fileupload.php的逻辑吧，后续出篇文章！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6436116?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/107295472">107295472</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38013109">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>2betop 晚上7：46，你在休斯顿、底特律呢</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6436116?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/107295472">107295472</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38013147">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>哦，github，发过来的，他们在休斯顿、底特律</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38013187">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>休斯顿，哈哈开玩笑的，我在北京。我这是mac系统，估计时区不对吧！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2235199?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/addls">addls</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38068267">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>之前上传的一个bug, 现在貌似好了！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1574903?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hooray">hooray</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38132631">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>uploadBeforeSend事件里的2个参数要怎么使用？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38134499">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>第一个是file对象，可以让你知道是哪个file，第二个是data对象，data里面的属性将作为参数发给服务端。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7037680?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/smallk2010">smallk2010</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38386999">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>Flash的例子有吗？怎么实现flash上传，谢谢指教。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38400673">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/smallk2010" class="user-mention">@smallk2010</a> 一样的用法，把runtimeOrder设置成flash就行了。</p>

            <div class="highlight highlight-source-js"><pre>uploader <span class="pl-k">=</span> <span class="pl-smi">WebUploader</span>.<span class="pl-en">cretate</span>({
    ...
    runtimeOrder<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>flash<span class="pl-pds">'</span></span>,
    ...
});</pre></div></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38545203">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            请问后端用python,如何拿到要上传的文件？谢谢</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38545633">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>不懂python啊，发过去的数据是这个格式的。<code>Content-Type:multipart/form-data;</code>，你可以把它当成普通文本域一样接收，这个文本域的name默认是<code>file</code>。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6436116?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/107295472">107295472</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38554607">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>后端，全用接受流，或者二进制字节取就好了</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38768150">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            Hi!我在webuploader.js代码里没有找到这个文本域的默认name是file啊？我在<br>
            Html5Runtime.register( 'FilePicker', {<br>
            init: function() {}的<br>
            input.attr( 'type', 'file' );下面加了<br>
            input.attr( 'name', 'MyFiledName' ); 貌似也不行，我现在需要拿到这个input标签的name,求教！谢谢！！！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38768325">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/warriorzcx" class="user-mention">@warriorzcx</a> <br>
            你是前端要hack呢，还是后端要读数据呢，我之前以为你只是关心后端怎么读取这个文件呢。</p>

            <p>你修改那个input的name没用，不是通过它把文件发送过去的，而是通过formData对象包装后丢给ajax发送过去的，我想表达的其实是后端的接收方式是与传统的文件域上传是没有区别的。通过配置<code>options.fileVal</code>可以用来指定后端接受的文件name.</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38776234">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            我知道这个input是包在form里面，通过提交form才能上传文件的，我的后端需要拿到"选择图片"这个input的name ,再存储到服务器。所以我才那么改的。。。不知您说的直接修改那个input的name没用是什么原因？另外请问如何配置options.fileVal，小白一枚，望不吝赐教！谢谢</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38776348">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>也就是说，你初始化webuploader的时候，第一个参数配置项里面指定fileVal</p>

            <div class="highlight highlight-source-js"><pre><span class="pl-smi">WebUploader</span>.<span class="pl-en">create</span>({
    ...
    fileVal<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>MyFiledName<span class="pl-pds">'</span></span>,
    ...
});</pre></div></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7079272?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/rbzdg">rbzdg</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38779483">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>请问一下我现在只想用这个预览功能，我想自己在页面拿file文件，如果获取？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38782780">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>通过<code>fileQueued</code>你可以拿到我们包装过的file对象，然后file.getSouce()可以获得一个我们封装过的与浏览器接口保持一致的File对象（这个主要为了磨平Flash里面的文件操作，再抽离出来的，这里面包含文件类型是flash的还是html5的）, 再通过getSource()方法可以获得原生的File对象。这个应该就是你想要的东西。</p>

            <p><code>file.getSource().getSource()</code></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38887283">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            谢谢！我修改了配置的fileVal，但是貌似还是没有实现我想要的功能。<br>
            我的情况是这样的：<br>
            如果在HTML里写一个<br>
            我的后端：<br>
            f=request.files['MyFiledName']就可以拿到上传的文件 也就是f<br>
            然后f.save('/path/to/saved_uploadimg/imgname') 就可以存储到/path/to/saved_uploadimg,名称为imgname。<br>
            但是如果按<br>
            WebUploader.create({<br>
            ...<br>
            fileVal: 'MyFiledName',<br>
            ...<br>
            });操作<br>
            我发现最后存储的是一个空的文本文件，不是图片，貌似f=request.files['MyFiledName']这一步就没有取到文件。。。<br>
            我不太明白这样的操作与我自己写一个input标签有何区别？请指教，谢谢！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38887567">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>你是不是设置了<code>sendAsBinary</code>为true啊，如果没有的话我也不知道是什么影响了，如果设置了，你可以暂时先设成false, 看能不能取到文件，如果还是不行，你可以尝试把那个设置成true, 然后服务端把这个request的body全存为文件试试。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38896627">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            谢谢!在webuploader.js里关于options的默认配置是这样的：</p>

<pre><code>Transport.options = {
    server: '',
    method: 'POST',

    // 跨域时，是否允许携带cookie, 只有html5 runtime才有效
    withCredentials: false,
    fileVar: 'file',
    timeout: 2 * 60 * 1000,    // 2分钟
    formData: {},
    headers: {},
    sendAsBinary: false
    };
</code></pre>

            <p>这个fileVar应该是文件上传域的name吧？但在API中又看到：<br>
                <em>fileVal {Object} [可选] [默认值：'file'] 设置文件上传域的name。</em><br>
                但是在webuploader.js里也有fileVal的代码：</p>

<pre><code>// 开始发送。
    tr.appendBlob( opts.fileVal, block.blob, file.name );
</code></pre>

            <p>请问这个fileVar和fileVar究竟哪个是文件上传域的name啊？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7079163?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/yy100520">yy100520</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38896894">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><div class="email-fragment">我是这样的，在页面表单中上引用了插件，点击选择图片预览成功了（不进行上传），然后我就将直接用submit将整个表单提交了，但是在后台action中file提示是null</div>
            <span class="email-hidden-toggle"><a href="#">…</a></span><div class="email-hidden-reply" style="display:none">
                <div class="email-signature-reply">------------------ 原始邮件 ------------------
                    发件人: "廖学芝";&lt;notifications@github.com&gt;;
                    发送时间: 2014年3月27日(星期四) 下午5:31
                    收件人: "fex-team/webuploader"&lt;webuploader@noreply.github.com&gt;;
                    抄送: "张玉建"&lt;704906661@qq.com&gt;;
                    主题: Re: [webuploader] (gh-pages评论)Demo (<a href="https://github.com/fex-team/webuploader/issues/81" class="issue-link" title="(gh-pages评论)Demo">#81</a>)




                    通过fileQueued你可以拿到我们包装过的file对象，然后file.getSouce()可以获得一个我们封装过的与浏览器接口保持一致的File对象（这个主要为了磨平Flash里面的文件操作，再抽离出来的，只里面包含文件类型是flash的还是html5的）, 再通过getSource()方法可以获得原生的File对象。这个应该就是你想要的东西。

                    —
                    Reply to this email directly or view it on GitHub.</div>
            </div></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38897042">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/yy100520" class="user-mention">@yy100520</a><br>
            我的也是，图片预览没问题，但是submit form，后面就存储不了。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38897516">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>这个是这样的，文件表单onchange完后会被reset掉，这个是为了下次选同样的文件的时候还是会触发onchange事件。</p>

            <p>这个真有点纠结啊。就算我不reset，在flash模式下也是为空的啊。</p>

            <p>为何不直接用webuploader上传呢？把webuploader上传的文件先存为临时文件，然后把id返回来，然后把这个值插入到form的隐藏表单里面。用户点击确认了后，服务端根据接受到的id对应的把临时文件变成有效文件。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38898140">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            大大，您是在回答我的问题么。。。请问那个fileVar和fileVal究竟是怎么回事啊？上传就是用的webuploader啊。。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7079163?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/yy100520">yy100520</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38898262">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><div class="email-fragment">一开始是这样做的，先上传再把服务器上的文件路径带回来，然后表单提交的时候我将文件路径存起来，但是这个图片是表单里的一个子功能，如果上传了图片要删除，我还要再去删除服务器的，如果不进行上传，我只要在在预览的时候进行删除就可以了，这个reset操作在哪里，可以改么如果可以，flash模式我可以先不考虑，（还有一个问题，如果是多图片上传，后台action怎么取所有文件呢）</div>
            <span class="email-hidden-toggle"><a href="#">…</a></span><div class="email-hidden-reply" style="display:none">
                <div class="email-signature-reply">------------------ 原始邮件 ------------------
                    发件人: "廖学芝";&lt;notifications@github.com&gt;;
                    发送时间: 2014年3月28日(星期五) 下午4:31
                    收件人: "fex-team/webuploader"&lt;webuploader@noreply.github.com&gt;;
                    抄送: "张玉建"&lt;704906661@qq.com&gt;;
                    主题: Re: [webuploader] (gh-pages评论)Demo (<a href="https://github.com/fex-team/webuploader/issues/81" class="issue-link" title="(gh-pages评论)Demo">#81</a>)




                    这个是这样的，文件表单onchange完后会被reset掉，这个是为了下次选同样的文件的时候还是会触发onchange事件。

                    这个真有点纠结啊。就算我不reset，在flash模式下也是为空的啊。

                    为何不直接用webuploader上传呢？把webuploader上传的文件先存为临时文件，然后把id返回来，然后把这个值插入到form的隐藏表单里面。用户点击确认了后，服务端根据接受到的id对应的把临时文件变成有效文件。

                    —
                    Reply to this email directly or view it on GitHub.</div>
            </div></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38898912">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/yy100520" class="user-mention">@yy100520</a><br>
            <a href="https://cloud.githubusercontent.com/assets/2698393/2547702/80747892-b655-11e3-9016-6c4f5f618e05.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/2698393/2547702/80747892-b655-11e3-9016-6c4f5f618e05.png" alt="image" style="max-width:100%;"></a></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38899004">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/warriorzcx" class="user-mention">@warriorzcx</a> 不好意思，那个是拼写错误啊，我已经火速纠正了，你更新一把代码吧。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38899376">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            是不是webuploader.js里只有fileVar，把fileVal改成fileVar，另外API中的fileVal也应该是fileVar？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38899522">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/warriorzcx" class="user-mention">@warriorzcx</a> 还是全部改成fileVal吧，之前的项目都是用的这个，没办法。统一成fileVal吧</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-38899611">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            ok</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39048364">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a><br>
            请问我用firebug查看页面元素，看到：<br>
            &lt;input type="file" style="position: absolute; clip: rect(1px, 1px, 1px, 1px);" multiple="multiple"<br><br>
            并没有看到默认的name为file，在options里修改fileVal也看不到input name？？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39048442">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/warriorzcx" class="user-mention">@warriorzcx</a> 看不到啊，我发送文件其实不需要那个标签，那个标签只是帮助选择文件用的。选完文件就没它的事了。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39048679">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            还是上周那个问题。。。但是我后端处理需要这个input name，请问我该如何拿到这个input name，使用默认的"file"，或者修改fileVal貌似都没用。。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39049430">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            我的意思就是需要拿到类似jquery fileDrop<br>
            dropbox.filedrop({<br>
            paramname: 'file',<br>
            中的"paramname"的东西</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39049456">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>我知道，我正在装python，再找原因，稍等！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39049615">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            谢谢，您先忙您的 有空了再说</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6881996?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/sz001">sz001</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39063276">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>.net的取值方法：sendAsBinary为true时，使用context.Request.InputStream取值;为false时使用System.Web.HttpContext.Current.Request.Files;</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39063649">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/sz001" class="user-mention">@sz001</a> 感谢分享!</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7079272?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/rbzdg">rbzdg</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39063928">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>ie7和ie8都成功调用了flash,ie9就是不行，是不是少加了什么</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7037680?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/smallk2010">smallk2010</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-39167821">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>谁分享一个在FLASH界面里 实现上传的demo，本人不懂js，看半天都不知道怎么交换的。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1056594?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/warriorzcx">warriorzcx</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40161543">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            你好，有空时能否看看我的问题。。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3872051?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/xuexb">xuexb</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40783524">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>昨晚看的demo, 发现很帅, API兼容也不错, 准备用她开发, 但到公司发现 居然ie9--没有加载flash, 就木没点击, 就不能用...</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40783555">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>flash版本是多少？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3872051?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/xuexb">xuexb</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40783708">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> 目测 chrome 是11,IE是13, 我升级下吧</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3872051?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/xuexb">xuexb</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40784760">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> 还是不行, 卸载重装后还是不行... 我该乍办, 急用这个...</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40787346">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>转入此讨论：<a href="https://github.com/fex-team/webuploader/issues/148" class="issue-link" title="ie9(及以下)使用无法加载flash按钮">#148</a></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7352057?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hujinhu">hujinhu</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40891222">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>有没有destroy方法呢，我把它放在一个弹出窗口里面，但是每次打开，上次添加的东西都在，每次打开能执行个什么方法让它再次初始化呢？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40911941">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>目前只有reset方法，还没有destroy抱歉。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7352057?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hujinhu">hujinhu</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40912031">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>reset怎么用？API里面没有找到啊。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40912094">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>直接调用<code>uploader.reset()</code>就行，目前只做了队列清空，不知道是否已经足够，目前还没遇到过要用reset的case。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/1574903?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hooray">hooray</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40912205">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>之前阅读过一小段源码，发现部分 api 和文档提供的有出入，也有一些 api 在文档里没写出，我觉得文档作者还是需要完善下，开源作品想推广好，文档是核心，目前的文档阅读起来有点让人感到困惑，举个最简单的问题，文档里的 api 缺少调用方法。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-40912254">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/hooray" class="user-mention">@hooray</a> 好的，多谢反馈！</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/863582?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/qpwoeiru96">qpwoeiru96</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-41203623">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>诶 早知道你们写了这个东西 我就不搞了QUpload了，代码写的比我的好多了，不过大家共同的毛病不是代码质量上而是Flash这一块的FileReference.load还有片段切割上 这一块体验非常不好 但是没有办法了 Flash不开新的API估计只能这么搓了!! <a href="https://github.com/qpwoeiru96/QUpload">https://github.com/qpwoeiru96/QUpload</a> 地址附上</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-41237135">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/qpwoeiru96" class="user-mention">@qpwoeiru96</a> 确实是没办法，必须得读入内存才能分割，像html5就可以只分割不读入内存。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6059958?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hidmouth">hidmouth</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-41896212">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>IE6 IE8 下 webuploader.js 报错，firefox / chrome 没有问题，是我环境问题还是使用问题？<br>
            报错行数在 980 行<br>
            type = type || getFirstKey( factories );<br>
            if ( !type ) {<br>
            throw new Error('Runtime Error');<br>
            }</p>

            <h2>谢谢指点</h2>

            <p>通过浏览器安装 Flash 插件OK了，估计之前无法做运行时判断。Flash 运行环境下，能不能像优酷那样提示安装 Flash 插件呢?</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/6059958?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hidmouth">hidmouth</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-41946952">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>仔细学习过 API 后，感觉好精良的插件，好多文件上传插件，要不太简单，要不太臃肿，WebUploader 我感觉是一个非常流B的文件上传引擎，百度团队造福全人类的节奏哇!!</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/237062?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/tvrcgo">tvrcgo</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-42747182">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>不管是 fileVar 还是 fileVal ，设置为非file之后，服务器端都收不到。<br>
            API文档里面写的 fileVal 要 Object，试过写成字符串和 { name : "image" }，都收不到。<br>
            客户端只有不添加这个参数才行。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-42764951">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/tvrcgo" class="user-mention">@tvrcgo</a> 你是不是设置了<code>sendAsBinary</code>，如果设置了这个属性为 true 表明是发送的内容全部为二进制文件数据, 服务端要读取所有发送体</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/237062?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/tvrcgo">tvrcgo</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-42857266">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> 没有 <br>
            <a href="https://cloud.githubusercontent.com/assets/237062/2947345/47202b54-d9f5-11e3-8e5b-810c11b8853d.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/237062/2947345/47202b54-d9f5-11e3-8e5b-810c11b8853d.png" alt="qq20140513004614" style="max-width:100%;"></a></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/5218417?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/jiuhuan">jiuhuan</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-43443870">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> 有断点续传的思路吗？？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-43460230">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/jiuhuan" class="user-mention">@jiuhuan</a> 必须有啊，<a href="https://github.com/fex-team/webuploader/issues/142" class="issue-link" title="如何实现秒传与断点续传">#142</a></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/125126?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/duson">duson</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-43851006">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>如何监听所有文件都上传完了（无论成功，还是失败），然后执行相应回调函数呢？</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-43851292">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>事件 <code>uploadFinished</code></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3240539?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/ddatmhappy">ddatmhappy</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44169176">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>你好，首先肯定和感谢楼主。<br>
            每一个文件上传都需要服务器调用upload.phpa 有没有一次性上传的方法</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44172854">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/ddatmhappy" class="user-mention">@ddatmhappy</a> 没有这样的方法，如果这样的话，不利于并发，错误排查， 上传进度跟踪等等。。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3240539?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/ddatmhappy">ddatmhappy</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44173007">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a><br><br>
            好吧  能够接受 <br>
            另外，有没有办法异步提交呢，我希望在form里面使用。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44173390">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/ddatmhappy" class="user-mention">@ddatmhappy</a> 你的意思是把上传过程合并到你的 form 请求里面一起上传？由于 webuploader 会把文件内容进行修改，所以没法合并进去，你可以考虑用这种方案，webuploader 先上传到临时目录，上传成功后，把引用返回回来，比如文件 ID，存到这个 form 表单里面，然后 form 提交的时候，把文件从临时目录转正。如果不提交此 form， 那些临时文件定期清理掉。</p>

            <p>那么这个form表单提交就相当于一个确认过程。估计你想要合并到form也是想要一个确认过程吧。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3240539?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/ddatmhappy">ddatmhappy</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44173845">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a><br><br>
            我遇到的是在form里使用web upload  上传至服务器后页面会刷新    这样之前的上传操纵就没有记录了  暂时还不清楚是不是您那边的问题   我也在找    </p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3240539?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/ddatmhappy">ddatmhappy</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44179409">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            请问一下 ，如果是文件后缀限制，accept里mimeTypes怎么设置 </p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44179762">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/ddatmhappy" class="user-mention">@ddatmhappy</a> mimeTypes 是给 html5 用的，目前不能智能从后缀生成相应的 mime-type 所以还是得自己配置。</p>

            <p>比如 </p>

            <div class="highlight highlight-source-js"><pre>accept<span class="pl-k">:</span> {
    title<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>Images<span class="pl-pds">'</span></span>,
    extensions<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>gif,jpg,jpeg,bmp,png<span class="pl-pds">'</span></span>,
    mimeTypes<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>image/*<span class="pl-pds">'</span></span>
}</pre></div>

            <div class="highlight highlight-source-js"><pre>accept<span class="pl-k">:</span> {
    title<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>Gif or Png<span class="pl-pds">'</span></span>,
    extensions<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>gif,png<span class="pl-pds">'</span></span>,
    mimeTypes<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>image/gif,image/png<span class="pl-pds">'</span></span>
}</pre></div></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3240539?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/ddatmhappy">ddatmhappy</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44182669">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> 谢谢您的回答<br><br>
            我是想知道如果是非图像的文件，mimetypes该怎么设置<br>
            如：<br>
            accept:{<br>
            title:'files',<br>
            extensions:'doc,ppt',<br>
            ,mimetypes:‘’，<br>
            }</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44182899">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/ddatmhappy" class="user-mention">@ddatmhappy</a> 哥，你也太懒了，百度一把到处都是。</p>

            <div class="highlight highlight-source-js"><pre>[
    <span class="pl-s"><span class="pl-pds">'</span>application/msword<span class="pl-pds">'</span></span>,   <span class="pl-c">// doc</span>
    <span class="pl-s"><span class="pl-pds">'</span>application/vnd.openxmlformats-officedocument.wordprocessingml.document<span class="pl-pds">'</span></span>,    <span class="pl-c">// docx</span>
    <span class="pl-s"><span class="pl-pds">'</span>application/vnd.ms-powerpoint<span class="pl-pds">'</span></span>,    <span class="pl-c">// ppt pps pot ppa</span>
    <span class="pl-s"><span class="pl-pds">'</span>application/vnd.openxmlformats-officedocument.presentationml.presentation<span class="pl-pds">'</span></span>    <span class="pl-c">// pptx</span>

].<span class="pl-c1">join</span>(<span class="pl-s"><span class="pl-pds">'</span>,<span class="pl-pds">'</span></span>)</pre></div></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/3240539?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/ddatmhappy">ddatmhappy</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44183095">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/2betop" class="user-mention">@2betop</a> <br>
            真不是懒哈，确实是对基础知识不了解，谢谢你。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/4219999?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/tyua07">tyua07</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44240146">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>请问 上传成功后 怎么获取到 上传后的文件名呢？<br>
            第一张是php段:输出的是"20140527\/538431c35f51c.jpg"</p>

            <p><a href="https://cloud.githubusercontent.com/assets/4219999/3088127/27bbe1b6-e569-11e3-8316-1a448cb3224a.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/4219999/3088127/27bbe1b6-e569-11e3-8316-1a448cb3224a.png" alt="php" style="max-width:100%;"></a></p>

            <p><a href="https://cloud.githubusercontent.com/assets/4219999/3088126/27ba18cc-e569-11e3-8fed-8dc74d10d514.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/4219999/3088126/27ba18cc-e569-11e3-8fed-8dc74d10d514.png" alt="js" style="max-width:100%;"></a></p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/2698393?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/2betop">2betop</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44240353">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://github.com/tyua07" class="user-mention">@tyua07</a> 新建一个 issue  吧，把你的 data 原文贴出来。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/4219999?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/tyua07">tyua07</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44240875">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><div class="email-fragment">您好已经发布了，您看下，真感谢您回复的这么快，<a href="https://github.com/fex-team/webuploader/issues/202" class="issue-link" title="上传完成后获取PHP端返回数据问题！">#202</a>
        </div>
            <span class="email-hidden-toggle"><a href="#">…</a></span><div class="email-hidden-reply" style="display:none">
                <div class="email-signature-reply">------------------ 原始邮件 ------------------
                    发件人: "廖学芝";&lt;notifications@github.com&gt;;
                    发送时间: 2014年5月27日(星期二) 下午2:40
                    收件人: "fex-team/webuploader"&lt;webuploader@noreply.github.com&gt;;
                    抄送: ""&lt;547484196@qq.com&gt;;
                    主题: Re: [webuploader] (gh-pages评论)Demo (<a href="https://github.com/fex-team/webuploader/issues/81" class="issue-link" title="(gh-pages评论)Demo">#81</a>)




                    <a href="https://github.com/tyua07" class="user-mention">@tyua07</a> 新建一个 issue  吧，把你的 data 原文贴出来。

                    —
                    Reply to this email directly or view it on GitHub.</div>
            </div></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7668555?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/hwanginsitein">hwanginsitein</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-44243299">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p><a href="https://cloud.githubusercontent.com/assets/7668555/3088469/58b30676-e570-11e3-88f9-96ea610a5771.jpg" target="_blank"><img src="https://cloud.githubusercontent.com/assets/7668555/3088469/58b30676-e570-11e3-88f9-96ea610a5771.jpg" alt="a_ ijhs7jn0w9w q079 zwo" style="max-width:100%;"></a><br>
            在我本地上传没问题 在服务器端会出问题<br>
            我看了一下 是执行到这一条代码出问题 应该怎么办呢?</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7858197?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/52017126">52017126</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-45718198">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>用了SparkMD5作为加密手段后的确快了很多，但还是不理想，浏览器CPU占用十分高，希望可以早日将MD5加密API 加入到flash中。</p></div></div><div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="https://avatars.githubusercontent.com/u/7858197?v=3" alt="" height="20" width="20"></div><a class="commentuser" href="https://www.github.com/52017126">52017126</a><a class="commentdate" href="https://github.com/fex-team/webuploader/issues/81#issuecomment-45840209">NaN-NaN-NaN NaN:NaN:NaN</a></div><div class="commentbody"><p>希望可以将POST数据放在FLASH中，支持跨域</p></div></div></div>




    </div></div> <div id="footer" class="footer">
    <div class="footer-inner container">
        <div class="row">
            <div class="col-md-4">
                <p class="copyright">Webuploader由<a href="https://github.com/fex-team">fex-team</a>团队负责维护</p>
                <p>©2013-2018 Baidu Fex Team</p>
            </div>
            <div class="col-md-4">
                <!-- <p>友情链接</p> -->
                <ul class="friends-links">
                    <li><a href="http://fis.baidu.com/" title="前端集成解决方案">Fis</a></li>
                    <li><a href="http://gmu.baidu.com" title="基于zepto的mobile UI组件库">GMU</a></li>
                    <li><a href="http://ueditor.baidu.com/website/" title="UEditor是由百度web前端研发部开发所见即所得富文本web编辑器，具有轻量，可定制，注重用户体验等特点，开源基于MIT协议，允许自由使用和修改代码...">Ueditor</a></li>
                </ul>
            </div>
            <div class="col-md-4">
                <div class="weixin">
                    <img src="/webuploader/images/qrcode.jpg" alt="..." class="img-rounded weixin-img">
                    <p>微信公共帐号</p>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    // 添加全局站点信息
    var BASE_URL = '/webuploader';
</script>
<script type="text/javascript" src="/webuploader/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/webuploader/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/webuploader/js/global.js"></script>

<script type="text/javascript" src="/webuploader/js/webuploader.js"></script>

<script type="text/javascript" src="/webuploader/js/demo.js"></script>

<script type="text/javascript">
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F67c4841095cbee8275705e1f6224a3c7' type='text/javascript'%3E%3C/script%3E"));
</script><script src=" http://hm.baidu.com/h.js?67c4841095cbee8275705e1f6224a3c7" type="text/javascript"></script>


</body>